'''
r 读
w 写
a 追加
wb 以二进制方式写入
w+ 读写

'''

with open('a.txt','w',encoding='utf-8') as k :
    k.write('asdsad')

# 二进制图片文件写入
# content = requests.get(pic).content
# with open(path,'wb') as f:
#     f.write(content)

import  csv

#表格写入
List=[['1','1','1'],['2','2','2']]
for j in List:
    with open('asa.csv', 'a', encoding='utf-8-sig', newline='') as k:
        fgc = csv.writer(k, 'excel')
        fgc.writerow(j)


